package com.fintech.common.vo;

import java.io.Serializable;

/**
 * @author ljs
 */
public class KaNiuResultVO implements Serializable {

	private static final long serialVersionUID = -4289748311161727515L;

	private String resultSuccess = "true";
	/**
	 *  0000	调用成功
		0001	缺少必要参数
		0009	系统异常
		2003	accessToken或accessId不存在
		2004	鉴权失败
	 */
	private String resultCode;
	private Object data;
	private String resultCodeDescription;

	public String getResultSuccess() {
		return resultSuccess;
	}

	public void setResultSuccess(String resultSuccess) {
		this.resultSuccess = resultSuccess;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getResultCodeDescription() {
		return resultCodeDescription;
	}

	public void setResultCodeDescription(String resultCodeDescription) {
		this.resultCodeDescription = resultCodeDescription;
	}

	@Override
	public String toString() {
		return "KaNiuResult [resultSuccess=" + resultSuccess + ", resultCode=" + resultCode + ", data=" + data
				+ ", resultCodeDescription=" + resultCodeDescription + "]";
	}
	
	/**
	 * @return
	 */
	public static KaNiuResultVO getResult(String resultCode, String resultCodeDescription, Object data){
		return new KaNiuResultVO(resultCode, data, resultCodeDescription);
	}

	public KaNiuResultVO(String resultCode, Object data, String resultCodeDescription) {
		this.resultCode = resultCode;
		this.data = data;
		this.resultCodeDescription = resultCodeDescription;
	}

	public KaNiuResultVO() {}
	
}
